package com.itheima.d_request_04;

import javax.servlet.ServletException;
import javax.servlet.ServletInputStream;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.BufferedReader;
import java.io.IOException;

@WebServlet("/RequestServlet05")
//http://localhost:8080/day07/RequestServlet03?username=zhangsan&password=123
public class RequestServlet05 extends HttpServlet {
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        doGet(request, response);


    }

    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {


        /*BufferedReader reader = request.getReader();

        String line = null;

        while ((line=reader.readLine())!=null){
            System.out.println(line);
        }*/

    }

}